<div class='c-box-headline c-box c-box-gallery c-box-right digshows'>

		<?PHP
		$items=0;
	
		foreach($community->shows as $x)
		{
			if($items<7){
			 if($items==0){	
				?>
		<li class="first_image show-image-large" id="show-image-large-<?PHP echo $x['id'];?>">									
					<img src="a/show-resized.php?file=<?PHP echo $x['image'];?>&x=300&y=205" width="300" height="205" alt="<?PHP  echo $x['title'];?>">
							
<span class="show-title"><?PHP  echo $x['title'];?></span>&nbsp;
		
					<?php if(!empty($todayshow)) {?>
					<a href="play/<?PHP echo $todayshow['id'];?>/<?PHP echo csq($todayshow['title']);?>" class="popoutplayer c-box-latest-link show-link">
					Watch Online
					</a>
				<?php	}
				else{
				?>
					<a href="play/500/<?PHP echo csq("default");?>" class="popoutplayer c-box-latest-link show-link">
					Watch Online
					</a>
				<?php				
				
				}
				if($x['show']!=2){
				?>
					<br />
					<a target="_blank" class="show-link" href="article/<?php echo $x['id'] ?>" >
						Go to their page
					</a>
				<?php
				}
				else
				{
				?>
					<br />
					<a style="visibility:hidden" href="article/<?php echo $x['id'] ?>" >
						Go to their page
					</a>
				<?php
				}
				?>
				<span class="show-secondary">	
				<?PHP echo $x['schedule'];?>
				</span>
				</li>
		<?php
		}
		else{
		?>

  <li class="first_image show-image-large hidden" id="show-image-large-<?PHP echo $x['id'];?>" >									
					<img  src="a/show-resized.php?file=<?PHP echo $x['image'];?>&x=300&y=205" width="300" height="205" alt="<?PHP  echo $x['title'];?>">
							
<span class="show-title"><?PHP  echo $x['title'];?></span>&nbsp;

			<?php if(!empty($todayshow)) {?>
					<a href="play/<?PHP echo $todayshow['id'];?>/<?PHP echo csq($todayshow['title']);?>" class="popoutplayer c-box-latest-link show-link">
					Watch Online
					</a>
				<?php	}
				else{
				?>
					<a class="show-link" href="play/500/<?PHP echo csq("default");?>" class="popoutplayer c-box-latest-link show-link">
					Watch Online
					</a>  
	
				<?php				
				}
				if($x['show']!=2){
				?>
					<br />
					<a target="_blank" class="show-link" href="article/<?php echo $x['id'] ?>" >
						Go to their page
					</a>
				<?php
				}
				else
				{
				?>
					<br />
					<a style="visibility:hidden" href="article/<?php echo $x['id'] ?>" >
						Go to their page
					</a>
				<?php
				}
				?>
				<span class="show-secondary">	
				<?PHP echo $x['schedule'];?>
				</span>

				</li>
				
				<?PHP	
			}
				
			}
			$items++;
			
		}
	
		$items=1;
		foreach($community->shows as $x)
		{
		?>

				 <li style="cursor:pointer" id="show-image-<?PHP echo $x['id'];?>" class='show-image-button'>									
					<img src="<?PHP echo ap($x['thumb']);?>" alt="<?PHP  echo $x['title'];?>">
					<span><?PHP  echo $x['title'];?></span>		
					


				</li>
	<?php

	
		$items++;
		}
	?>
		<hr class="divider">
		
</div>
